<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page import="entity.Product" %>

<html>
<head>
<script type="text/javascript">
function modoru(){
	  history.back();
	}</script>
<title>メイン画面2</title>
<style type="text/css">
body{background-color:#8FBC8F;}
.center{text-align:center;
}
h1{margin-top:60px;
width:30%;
background-color:#00BFFF;}

.mytable {
    border-collapse: collapse;

}
.mytable th {
    font-weight: bold;
    background-color: #cccccc;
}
.mytable th, .mytable td {
    width: 110px;
    height:35px;
    border: 1px solid black;
}


</style>
</head>
<body>
<div class="center">
<h1>商品管理システム(仮)</h1>
</div>
<br>
一覧
<br>
<br>
<center>
<br>
<br>
<form action="/abc/main2" method="post">
	<table class="mytable">
	 <th></th><th>大分類</th><th>中分類</th><th>小分類</th><th>販売社</th><th>商品名</th></tr>
	 <%
	 	List<Product> products = (ArrayList)request.getAttribute("products");
	 	for (Product product : products) {
	 %>
	 <tr bgcolor="#FFFFFF">
	    <td><input type="radio" name="productId" value="<%=product.getProductId()%>"></td>
	 	<td><%=product.getProductKbnA()%></td><td><%=product.getProductKbnB()%></td>
	    <td><%=product.getProductKbnC()%></td><td><%=product.getMaker()%></td><td><%=product.getProductName()%></td>
	 </tr>
	 <% } %>
	</table>
	<br>
	<br>
	<input type="submit" name="syousai" value="詳細">
	<input type="button"  value="戻る" onclick="modoru()">
</form>

</center>
</body>
</html>